package com.driver.system.service.impl;

import cn.hutool.core.map.MapUtil;
import com.driver.system.controller.form.ReceiveBillMessageForm;
import com.driver.system.feign.SnmServiceApi;
import com.driver.system.service.MessageService;
import com.driver.system.util.R;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MessageServiceImpl implements MessageService {
    @Resource
    private SnmServiceApi snmServiceApi;


    @Override
    public String receiveBillMessage(ReceiveBillMessageForm form) {
        R r = snmServiceApi.receiveBillMessage(form);
        return MapUtil.getStr(r,"result");
    }
}
